const CityReducer = (oldState={city:'北京'}, action) =>{
    let newState = {...oldState};
    switch(action.type){
        case 'change-city':
            newState.city = action.value;
            return newState;
        default:
            return oldState;
    }
}

export default CityReducer;